package com.xc.service.impl;

import com.xc.mapper.FenleiMapper;
import com.xc.model.dto.ResultDTO;
import com.xc.service.FenleiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FenleiServiceImpl implements FenleiService {

    @Autowired
    private FenleiMapper fenleiMapper;

    @Override
    public ResultDTO getFenlei() {
        return ResultDTO.data(fenleiMapper.getFenlei());
    }

    @Override
    public ResultDTO getFenleiNew() {
        return ResultDTO.data(fenleiMapper.getFenleiNew());
    }
}
